package co.fitstart.entity.credit.product;

import com.demo2do.core.utils.Alias;

/**
 * 
 * @author mohanlan
 *
 */
@Alias("creditProductTag")
public enum CreditProductTag {
	
	HOT("hot", "热门兑换"),
	
	LIMITEDTIME("limitedTime", "限时兑换"),
	
	CREDITPRESENT("creditPresent", "积分好礼");
	
	private String alias;
	
	private String description;
	
	private CreditProductTag(String alias, String description) {
		this.alias = alias;
		this.description = description;
	}
	
	/**
     * 
     * @param alias
     * @return
     */
    public static CreditProductTag aliasOf(String alias) {
        for (CreditProductTag tag : CreditProductTag.values()) {
            if (tag.getAlias().equalsIgnoreCase(alias)) {
                return tag;
            }
        }
        return null;
    }

	/**
	 * @return the alias
	 */
	public String getAlias() {
		return alias;
	}

	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}

	/**
	 * @param alias the alias to set
	 */
	public void setAlias(String alias) {
		this.alias = alias;
	}

	/**
	 * @param description the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}
	
	
}
